<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>student-admin</title>
    <link rel="stylesheet" th:href="@{/css/layui.css}">
</head>
<script th:src="@{/layui.js}"></script>
<script th:src="@{/js/jquery-3.5.1.min.js}"></script>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">edu-admin</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="">日志管理</a></li>
            <li class="layui-nav-item"><a href="">菜单管理</a></li>
            <li class="layui-nav-item"><a href="">权限管理</a></li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    admin
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="">退了</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">教师管理</a>
                    <dl class="layui-nav-child">
                        <dd><a class="click-btn" id="/pages/teacher/teacherAdd">教师添加</a></dd>
                        <dd><a class="click-btn" id="/pages//teacher/teacherList">教师信息</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">课程管理</a>
                    <dl class="layui-nav-child">
                        <dd><a class="click-btn" id="/pages/course/courseMustAdd">必修课程添加</a></dd>
                        <dd><a class="click-btn" id="/pages/course/courseMustList">必修课程信息</a></dd>
                        <dd><a class="click-btn" id="/pages/course/courseChooseAdd">选修课程添加</a></dd>
                        <dd><a class="click-btn" id="/pages/course/courseChooseList">选修课程信息</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">学生管理</a>
                    <dl class="layui-nav-child">
                        <dd><a class="click-btn" id="/pages/student/studentAdd">学生添加</a></dd>
                        <dd><a class="click-btn" id="/pages/student/studentList">学生信息</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body" id="body-content">
        <!--        &lt;!&ndash; 内容主体区域 &ndash;&gt;-->
        <!--        <div style="padding: 15px;">内容主体区域</div>-->

    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © layui.com - 底部固定区域
    </div>
</div>
<script>

    //JavaScript代码区域
    layui.use('element', function () {
        var element = layui.element;

    });
    $(".click-btn").click(function () {
        $("#body-content").load(this.id);
    })
</script>
</body>
</html>